package com.axjy.service.impl;

import com.axjy.dao.RoleMapper;
import com.axjy.pojo.Role;
import com.axjy.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 83536 on 2018/1/16.
 */
@Service("roleService")
@Transactional
public class RoleServiceImpl  implements RoleService{
     @Autowired
    private RoleMapper roleMapper;
    @Transactional(readOnly = true)
    @Override
    public List<Role> list() {
        return roleMapper.list();
    }
}
